package com.yuezhu.activity;

import android.os.Bundle;
import android.view.View;

import com.yuezhu.global.ParallaxSwipeBackActivity;
import com.yuezhu.R;
import com.yuezhu.constomview.TitleView;
import com.yuezhu.util.MyToast;

/**
 * Created by zhao on 2016/5/4.、、
 */
public class AddTentenActivity extends ParallaxSwipeBackActivity implements View.OnClickListener{
    private TitleView titleView;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_add_tenten);
        initView();
    }

    @Override
    protected void initView() {
        super.initView();
        titleView = (TitleView)findViewById(R.id.title);
        titleView.initTitleContent("返回","添加公寓","完成",null).setTitleViewListener(this).setStaus(TitleView.RIGHT_MID_LEFT);
    }

    @Override
    public void onClick(View view) {
        super.onClick(view);
        switch (view.getId()){
            case R.id.title_bac:
                finish();
                break;
            case R.id.title_yes:
                MyToast.showDefaltToast("完成");
                break;
        }
    }
}
